<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php if($item->type == 0){?>
<div id="option4-order" style="display:none">
	<div style="background:#fff; padding:20px; position:relative">
		<div class="pay-mess"></div>
		<table width="100%" style="border-spacing:5px">
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['custom_info'];?></span><br />
					<b><?php echo $lang['fullname'];?>:</b> <span id="cold-fullname-value"><?php echo $item->name;?></span><br />
					<b><?php echo $lang['email'];?>:</b> <span id="cold-email-value"><?php echo $item->email;?></span><br />
					<b><?php echo $lang['phone'];?>:</b> <span id="cold-phone-value"><?php echo $item->phone;?></span><br />
					<b><?php echo $lang['address'];?>:</b> <span id="cold-address-value"><?php echo $item->address.' ('.$item->districtname.' / '.$item->provincename.')';?></span>
				</td>
			</tr>
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['type_pay'];?></span>: <?php echo $lang['type_pay_value'];?>
				</td>
			</tr>
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['order_info'];?></span>
					<table style="border-spacing:5px">
						<tr>
							<td style="text-align:right"><?php echo $lang['money_add'];?>:</td>
							<td style="text-align:right"><b><span id="cold-money-value">
								<input type="text" name="txtMoney" id="txtMoney" value="<?php echo number_format($item->valueads);?>" />
							</span> <?php echo $lang['curency'];?></b></td>
						</tr>
						<tr>
							<td style="text-align:right">
								<?php echo $lang['ship_cost'];?>:
							</td>
							<td style="text-align:right"><b><span id="cold-free-value"><?php echo number_format($item->totalvalue-$item->valueads);?></span> <?php echo $lang['curency'];?></b></td>
						</tr>
						<tr>
							<td style="text-align:right"><?php echo $lang['sum_money_add'];?>:</td>
							<td style="text-align:right"><b><span id="cold-money-pay-value"><?php echo number_format($item->totalvalue);?></span> <?php echo $lang['curency'];?></b></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><br />
					<input type="button" onclick="addMoney(<?php echo $item->id;?>,2);" style="float:right" value="<?php echo $lang['add_money']?>"> &nbsp;
					<input type="button" onclick="$('#mask,#option4-order').hide();" style="float:right" value="<?php echo $lang['close']?>">
				</td>
			</tr>
		</table>
		<img id="loading-order" src="/images/ajaxLoading.gif" border="0" />
	</div>
</div>
<?php } else if($item->type == 1){?>
<div id="option4-order" style="display:none">
	<div style="background:#fff; padding:20px; position:relative">
		<div class="pay-mess"></div>
		<table width="100%" style="border-spacing:5px">
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['custom_info'];?></span><br />
					<b><?php echo $lang['fullname'];?>:</b> <span id="atm-fullname-value"><?php echo $item->name;?></span><br />
					<b><?php echo $lang['email'];?>:</b> <span id="atm-email-value"><?php echo $item->email;?></span><br />
					<b><?php echo $lang['phone'];?>:</b> <span id="atm-phone-value"><?php echo $item->phone;?></span><br />
				</td>
			</tr>
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['type_pay'];?></span>: <?php echo $lang['type_pay_transfer'];?>
					<p id="atm-bank-value" class="myclear"><?php echo $item->note;?></p>
					<span style="color:red;margin-left:110px">(<?php echo $lang['bank_transfer_free'];?>)</span>
				</td>
			</tr>
			<tr>
				<td style="padding:8px 15px; border:1px solid #f1f1f1; background:#fafafa">
					<span class="order-title"><?php echo $lang['order_info'];?></span>
					<table style="border-spacing:5px">
						<tr>
							<td style="text-align:right"><?php echo $lang['money_num'];?>:</td>
							<td style="text-align:right"><b><span id="atm-money-value">
								<input type="text" name="txtMoney" id="txtMoney" value="<?php echo number_format($item->valueads);?>" />
							</span> <?php echo $lang['curency'];?></b></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><br />
					<input type="button" onclick="addMoney(<?php echo $item->id;?>,2);" style="float:right" value="<?php echo $lang['add_money']?>"> &nbsp;
					<input type="button" onclick="$('#mask,#option4-order').hide();" style="float:right" value="<?php echo $lang['close']?>">
				</td>
			</tr>
		</table>
		<img id="loading-order" src="/images/ajaxLoading.gif" border="0" />
	</div>
</div>
<?php }?>